/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.pool.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class ItemReservaPK implements Serializable {

    private int nroPool;
    private String nroCta;
    private int orden;
    private String tippro;
    private String artcod;

    public ItemReservaPK() {

    }

    public String getArtcod() {
        return artcod;
    }

    public void setArtcod(String artcod) {
        this.artcod = artcod;
    }

    public String getNroCta() {
        return nroCta;
    }

    public void setNroCta(String nroCta) {
        this.nroCta = nroCta;
    }

    public int getNroPool() {
        return nroPool;
    }

    public void setNroPool(int nroPool) {
        this.nroPool = nroPool;
    }

    public int getOrden() {
        return orden;
    }

    public void setOrden(int orden) {
        this.orden = orden;
    }

    public String getTippro() {
        return tippro;
    }

    public void setTippro(String tippro) {
        this.tippro = tippro;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ItemReservaPK other = (ItemReservaPK) obj;
        if (this.nroPool != other.nroPool) {
            return false;
        }
        if ((this.nroCta == null) ? (other.nroCta != null) : !this.nroCta.equals(other.nroCta)) {
            return false;
        }
        if (this.orden != other.orden) {
            return false;
        }
        if ((this.tippro == null) ? (other.tippro != null) : !this.tippro.equals(other.tippro)) {
            return false;
        }
        if ((this.artcod == null) ? (other.artcod != null) : !this.artcod.equals(other.artcod)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 23 * hash + this.nroPool;
        hash = 23 * hash + (this.nroCta != null ? this.nroCta.hashCode() : 0);
        hash = 23 * hash + this.orden;
        hash = 23 * hash + (this.tippro != null ? this.tippro.hashCode() : 0);
        hash = 23 * hash + (this.artcod != null ? this.artcod.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "ItemReservaPK{" + "nroPool=" + nroPool + "nroCta=" + nroCta + "orden=" + orden + "tippro=" + tippro + "artcod=" + artcod + '}';
    }
    
}
